#ifndef _GEOSTARNT_FILESYS_REGKEY
	#define _GEOSTARNT_FILESYS_REGKEY
#include "winreg.h"
class AFX_EXT_CLASS CCCGISRegKey:public CObject
{
	DECLARE_DYNCREATE(CCCGISRegKey)
public:
	CCCGISRegKey();
	virtual ~CCCGISRegKey();

protected:
	HKEY m_hKey;
	CString m_sPath;

public:
	LONG Open(HKEY hKeyRoot, LPCSTR pszPath);
	void Close();

	LONG Write(LPCSTR pszKey, DWORD dwVal);
	LONG Write(LPCSTR pszKey, LPCSTR pszVal);
	LONG Write(LPCSTR pszKey, const BYTE *pData,DWORD dwLength);
	LONG Read(LPCSTR pszKey, DWORD &dwVal);
	LONG Read(LPCSTR pszKey, CString &sVal);
	LONG Read(LPCSTR pszKey, BYTE *pData,DWORD &dwLength);

	int CreateFoxDataSource(CString sSourceName,CString sPath,CString sDbcName, BOOL bIsFree,BOOL bIfExist);
};
#endif